/**
 * 
 */
package cn.antia.cep.db.hibernate.bean;

import java.util.*;

import javax.servlet.http.*;
import cn.antia.cep.common.*;

/**
 * @author sunkeei
 * @date Mar 7, 2007
 * @version 0.1
 */
public class VisitLog implements java.io.Serializable{
	private Integer id;
	private String comment;		//注释
	private Integer userType = new Integer(DBFlag.VISIT_LOG_USER_UNDEFINED); //未定义,1为登录用户，2为未登录用户
	private Integer loginType;	//登录类型。1为管理员登录。2为普通用户登录
	private String username;	//用户名
	private Integer userId; 	//用户ID
	private Date loginTime;		//登录时间
	private Date logoutTime;	//登出时间
	private String activeTime;	//活动时间
	private String activeTimeDesc;	//活动时间描述
	private String sessionId;	//session id
	private String ip;			//IP
	private String ipArea;		//IP所在区域
	private String remoteUser;  //远程用户
	private Integer clickTimes;	//点击量
	
	private HttpSession session;	//session
	private Privilege privilege;			//权限
	
	public VisitLog(){
	}
	
	public VisitLog(Integer id, Integer userType, Integer loginType, Date loginTime, String activeTime, String ip, Integer clickTimes) {
		super();
		this.id = id;
		this.userType = userType;
		this.loginType = loginType;
		this.loginTime = loginTime;
		this.activeTime = activeTime;
		this.ip = ip;
		this.clickTimes = clickTimes;
	}
	
	
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public String getActiveTime() {
		return activeTime;
	}
	public void setActiveTime(String activeTime) {
		this.activeTime = activeTime;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}
	public Date getLogoutTime() {
		return logoutTime;
	}
	public void setLogoutTime(Date logoutTime) {
		this.logoutTime = logoutTime;
	}
	public String getSessionId() {
		return sessionId;
	}
	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Integer getUserType() {
		return userType;
	}
	public void setUserType(Integer userType) {
		this.userType = userType;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	public String getRemoteUser() {
		return remoteUser;
	}
	public void setRemoteUser(String remoteUser) {
		this.remoteUser = remoteUser;
	}
	public Integer getClickTimes() {
		return clickTimes;
	}
	public void setClickTimes(Integer clickTimes) {
		this.clickTimes = clickTimes;
	}
	public Integer getLoginType() {
		return loginType;
	}
	public void setLoginType(Integer loginType) {
		this.loginType = loginType;
	}
	public String getActiveTimeDesc() {
		return activeTimeDesc;
	}
	public void setActiveTimeDesc(String activeTimeDesc) {
		this.activeTimeDesc = activeTimeDesc;
	}
	public String getIpArea() {
		return ipArea;
	}
	public void setIpArea(String ipArea) {
		this.ipArea = ipArea;
	}
	public HttpSession getSession() {
		return session;
	}
	public void setSession(HttpSession session) {
		this.session = session;
	}
	public Privilege getPrivilege() {
		return privilege;
	}
	public void setPrivilege(Privilege privilege) {
		this.privilege = privilege;
	}
}